home *** CD-ROM | disk | FTP | other *** search
/ MacHack 1996 / MacHack 1996.toast / Hacks / Hacks '96 / Better AD security / Source / info.cpp < prev    next >
Encoding:
C/C++ Source or Header  |  1996-06-21  |  540 b   |  27 lines  |  [TEXT/CWIE]

  1. #include <iostream.h>
  2. #include "bADs Constants.h"
  3.  
  4. #pragma options align=mac68k
  5. typedef struct {
  6.     long            magicNumber;
  7.     long            versionNumber;
  8.     ProcPtr            theTable[2];
  9. } ESAddressTable;
  10. #pragma options align=reset
  11.  
  12.  
  13. void main(void)
  14. {
  15.  
  16.     ESAddressTable        *theAddressTable;
  17.     long                oldAddr;
  18.  
  19.     Gestalt(kbADsAddressTable, (long *) &theAddressTable);        
  20.     oldAddr = (long) theAddressTable->theTable[kNewSysError];
  21.     
  22.     cout << "The address table: " << hex << (long) theAddressTable << endl;
  23.     
  24.     cout << "The old SysError: " << hex << oldAddr << endl;
  25. }
  26.  
  27.